var styles = [ { "elementType": "labels.text.fill", "stylers":[ { "visibility": "on" } , { "color": "#245C40" } ] } ]; var markerPos01 = new google.maps.LatLng(51.5722,-0.172612); var options = { center: markerPos01, zoom: 15, scrollwheel: false, //prevents the map zooming when the user is scroll-wheeling the web page disableDefaultUI: false, }; var div = document.getElementById('propertyMap'); var map = new google.maps.Map(div, options); var mapIconGold = 'img/map-icon-gold.png'; var mapIconGreen = 'img/map-icon-green.png'; window.onload = function () { var marker01 = new google.maps.Marker({ position: markerPos01, map: map, icon: mapIconGreen, /* title: 'Property Address' */ }); var contentString ="
Hampstead Lane, NW3
"; var iw01 = new google.maps.InfoWindow({ content: contentString }); var showFlagActive = ""; if(showFlagActive == 1) { iw01.open(map, marker01); } google.maps.event.addListener(marker01, "mouseover", function (e) { iw01.open(map, this); }); if(showFlagActive != 1) { google.maps.event.addListener(marker01, "mouseout", function (e) { iw01.close(map, this); }); } var styledMapType = new google.maps.StyledMapType(styles); map.mapTypes.set(styledMapType); }